/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.de.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * 德国考勤Entity
 * 
 * @author hui.li
 * @version 2016-09-30
 */
public class AttendanceDe extends DataEntity<AttendanceDe> {

	private static final long serialVersionUID = 1L;
	private String headDatum; // head_datum
	private String employeeId; // employee_id
	private String name; // name
	private String dienstplan; // dienstplan
	private String abteilung; // abteilung
	private Date datum; // datum
	private String tag; // tag
	private String stunden = "0"; // stunden
	private String cumm; // cumm

	private Date beginDate;
	private Date endDate;
	private String status;//同步状态1表示未同步，2表示已经同步
	private String employeeCount;
	public String getEmployeeCount() {
		return employeeCount;
	}

	public void setEmployeeCount(String employeeCount) {
		this.employeeCount = employeeCount;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	public AttendanceDe() {
		super();
	}

	public AttendanceDe(String id) {
		super(id);
	}

	@Length(min = 0, max = 64, message = "head_datum长度必须介于 0 和 64 之间")
	@ExcelField(title = "headDatum", align = 2, sort = 20)
	public String getHeadDatum() {
		return headDatum;
	}

	public void setHeadDatum(String headDatum) {
		this.headDatum = headDatum;
	}

	@Length(min = 0, max = 64, message = "employee_id长度必须介于 0 和 64 之间")
	@ExcelField(title = "employeeId", align = 2, sort = 30)
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	@Length(min = 0, max = 100, message = "name长度必须介于 0 和 100 之间")
	@ExcelField(title = "name", align = 2, sort = 40)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Length(min = 0, max = 32, message = "dienstplan长度必须介于 0 和 32 之间")
	@ExcelField(title = "dienstplan", align = 2, sort = 50)
	public String getDienstplan() {
		return dienstplan;
	}

	public void setDienstplan(String dienstplan) {
		this.dienstplan = dienstplan;
	}

	@Length(min = 0, max = 32, message = "abteilung长度必须介于 0 和 32 之间")
	@ExcelField(title = "abteilung", align = 2, sort = 60)
	public String getAbteilung() {
		return abteilung;
	}

	public void setAbteilung(String abteilung) {
		this.abteilung = abteilung;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	@Length(min = 0, max = 64, message = "datum长度必须介于 0 和 64 之间")
	@ExcelField(title = "datum", align = 2, sort = 70)
	public Date getDatum() {
		return datum;
	}

	public void setDatum(Date datum) {
		this.datum = datum;
	}

	@Length(min = 0, max = 64, message = "tag长度必须介于 0 和 64 之间")
	@ExcelField(title = "tag", align = 2, sort = 80)
	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	@Length(min = 0, max = 64, message = "stunden长度必须介于 0 和 64 之间")
	@ExcelField(title = "stunden", align = 2, sort = 90)
	public String getStunden() {
		return stunden;
	}

	public void setStunden(String stunden) {
		this.stunden = stunden;
	}

	@Length(min = 0, max = 64, message = "cumm长度必须介于 0 和 64 之间")
	@ExcelField(title = "cumm", align = 2, sort = 100)
	public String getCumm() {
		return cumm;
	}

	public void setCumm(String cumm) {
		this.cumm = cumm;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}
}